.class public Lcom/ninesky/browser/TabControl;
.super Landroid/widget/ViewAnimator;


# static fields
.field private static g:Lcom/ninesky/browser/TabControl;

.field private static h:Landroid/widget/Toast;


# instance fields
.field private a:Landroid/view/animation/Animation;

.field private b:Landroid/view/animation/Animation;

.field private c:Landroid/view/animation/Animation;

.field private d:Landroid/view/animation/Animation;

.field private e:Lcom/ninesky/browser/BrowserActivity;

.field private f:I

.field private final i:Ljava/io/File;

.field private j:Lcom/ninesky/browser/p;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/ninesky/browser/TabControl;->g:Lcom/ninesky/browser/TabControl;

    sput-object v0, Lcom/ninesky/browser/TabControl;->h:Landroid/widget/Toast;

    return-void
.end method

.method private constructor <init>(Landroid/content/Context;)V
    .locals 3

    const/4 v0, 0x0

    invoke-direct {p0, p1}, Landroid/widget/ViewAnimator;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->a:Landroid/view/animation/Animation;

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->b:Landroid/view/animation/Animation;

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->c:Landroid/view/animation/Animation;

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->d:Landroid/view/animation/Animation;

    const/4 v0, -0x1

    iput v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    new-instance v0, Lcom/ninesky/browser/p;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/p;-><init>(Lcom/ninesky/browser/TabControl;)V

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->j:Lcom/ninesky/browser/p;

    check-cast p1, Lcom/ninesky/browser/BrowserActivity;

    iput-object p1, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    sput-object p0, Lcom/ninesky/browser/TabControl;->g:Lcom/ninesky/browser/TabControl;

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "thumbnails"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/ninesky/browser/BrowserActivity;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->i:Ljava/io/File;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3

    const/4 v0, 0x0

    invoke-direct {p0, p1, p2}, Landroid/widget/ViewAnimator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->a:Landroid/view/animation/Animation;

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->b:Landroid/view/animation/Animation;

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->c:Landroid/view/animation/Animation;

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->d:Landroid/view/animation/Animation;

    const/4 v0, -0x1

    iput v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    new-instance v0, Lcom/ninesky/browser/p;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/p;-><init>(Lcom/ninesky/browser/TabControl;)V

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->j:Lcom/ninesky/browser/p;

    sput-object p0, Lcom/ninesky/browser/TabControl;->g:Lcom/ninesky/browser/TabControl;

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    const-string v1, "thumbnails"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/ninesky/browser/BrowserActivity;->getDir(Ljava/lang/String;I)Ljava/io/File;

    move-result-object v0

    iput-object v0, p0, Lcom/ninesky/browser/TabControl;->i:Ljava/io/File;

    return-void
.end method

.method public static a()Lcom/ninesky/browser/TabControl;
    .locals 1

    sget-object v0, Lcom/ninesky/browser/TabControl;->g:Lcom/ninesky/browser/TabControl;

    return-object v0
.end method

.method public static a(Landroid/content/Context;)Lcom/ninesky/browser/TabControl;
    .locals 1

    sget-object v0, Lcom/ninesky/browser/TabControl;->g:Lcom/ninesky/browser/TabControl;

    if-nez v0, :cond_0

    new-instance v0, Lcom/ninesky/browser/TabControl;

    invoke-direct {v0, p0}, Lcom/ninesky/browser/TabControl;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/ninesky/browser/TabControl;->g:Lcom/ninesky/browser/TabControl;

    :cond_0
    sget-object v0, Lcom/ninesky/browser/TabControl;->g:Lcom/ninesky/browser/TabControl;

    return-object v0
.end method

.method public static final a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.intent.action.SEND"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "text/plain"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "android.intent.extra.TEXT"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "android.intent.extra.SUBJECT"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const v1, 0x7f0700db

    :try_start_0
    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public static f()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/ninesky/browser/TabControl;->g:Lcom/ninesky/browser/TabControl;

    return-void
.end method


# virtual methods
.method public final a(Lcom/ninesky/browser/n;)I
    .locals 3

    const/4 v1, -0x1

    const/4 v0, 0x0

    move v2, v0

    :goto_0
    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    if-lt v2, v0, :cond_0

    move v0, v1

    :goto_1
    return v0

    :cond_0
    invoke-virtual {p0, v2}, Lcom/ninesky/browser/TabControl;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/n;

    if-ne v0, p1, :cond_1

    move v0, v2

    goto :goto_1

    :cond_1
    add-int/lit8 v0, v2, 0x1

    move v2, v0

    goto :goto_0
.end method

.method public final a(I)Lcom/ninesky/browser/n;
    .locals 0

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/TabControl;->getChildAt(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Lcom/ninesky/browser/n;

    return-object p0
.end method

.method public final a(Z)Lcom/ninesky/browser/n;
    .locals 11

    const/4 v9, 0x0

    const/4 v4, -0x1

    const/4 v2, 0x1

    const/4 v1, 0x0

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->d()Z

    move-result v0

    if-nez v0, :cond_1

    sget-object v0, Lcom/ninesky/browser/TabControl;->h:Landroid/widget/Toast;

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    const v1, 0x7f070145

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    sput-object v0, Lcom/ninesky/browser/TabControl;->h:Landroid/widget/Toast;

    :cond_0
    sget-object v0, Lcom/ninesky/browser/TabControl;->h:Landroid/widget/Toast;

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    move-object v0, v9

    :goto_0
    return-object v0

    :cond_1
    new-instance v10, Lcom/ninesky/browser/n;

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    invoke-direct {v10, v0}, Lcom/ninesky/browser/n;-><init>(Lcom/ninesky/browser/BrowserActivity;)V

    invoke-virtual {v10, v1, v1, v1, v1}, Lcom/ninesky/browser/n;->setPadding(IIII)V

    iget v5, p0, Lcom/ninesky/browser/TabControl;->f:I

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    add-int/lit8 v3, v0, 0x1

    monitor-enter p0

    :try_start_0
    invoke-super {p0, v10, v3}, Landroid/widget/ViewAnimator;->addView(Landroid/view/View;I)V

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v7

    invoke-virtual {p0, v3}, Lcom/ninesky/browser/TabControl;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/n;

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->q()Ljava/lang/String;

    move-result-object v8

    if-eqz p1, :cond_3

    iput v3, p0, Lcom/ninesky/browser/TabControl;->f:I

    if-eq v5, v4, :cond_2

    invoke-virtual {p0, v5}, Lcom/ninesky/browser/TabControl;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/n;

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/n;->a(Z)V

    :cond_2
    invoke-virtual {p0, v3}, Lcom/ninesky/browser/TabControl;->setDisplayedChild(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/ninesky/browser/n;->a(Z)V

    const/4 v0, 0x2

    move v6, v3

    move v2, v0

    :goto_1
    new-instance v0, Lcom/ninesky/browser/ef;

    move-object v1, p0

    invoke-direct/range {v0 .. v9}, Lcom/ninesky/browser/ef;-><init>(Lcom/ninesky/browser/TabControl;IIIIIILjava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/ninesky/browser/TabControl;->j:Lcom/ninesky/browser/p;

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/p;->a(Lcom/ninesky/browser/ef;)V

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/BrowserActivity;->e(I)V

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/BrowserActivity;->a(I)V

    move-object v0, v10

    goto :goto_0

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0

    :cond_3
    move v6, v5

    goto :goto_1
.end method

.method public final a(Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->a(Z)Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/n;->b(Ljava/lang/String;)V

    :cond_0
    return-void
.end method

.method public final a(Ljava/util/Observer;)V
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->j:Lcom/ninesky/browser/p;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/p;->addObserver(Ljava/util/Observer;)V

    return-void
.end method

.method public final a(Landroid/os/Bundle;)Z
    .locals 8

    const/4 v7, 0x1

    const/4 v6, 0x0

    const/4 v2, -0x1

    if-nez p1, :cond_0

    move v0, v2

    :goto_0
    if-ne v0, v2, :cond_1

    move v0, v6

    :goto_1
    return v0

    :cond_0
    const-string v0, "numTabs"

    invoke-virtual {p1, v0, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    goto :goto_0

    :cond_1
    const-string v1, "currentTabIndex"

    invoke-virtual {p1, v1, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v1

    move v2, v6

    :goto_2
    if-lt v2, v0, :cond_2

    move v0, v7

    goto :goto_1

    :cond_2
    if-ne v2, v1, :cond_4

    invoke-virtual {p0, v7}, Lcom/ninesky/browser/TabControl;->a(Z)Lcom/ninesky/browser/n;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "webview"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1, v4}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/ninesky/browser/n;->a(Landroid/os/Bundle;)Z

    move-result v4

    if-nez v4, :cond_3

    const-string v4, "about:dashboard"

    invoke-virtual {v3, v4}, Lcom/ninesky/browser/n;->b(Ljava/lang/String;)V

    :cond_3
    :goto_3
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    :cond_4
    invoke-virtual {p0, v6}, Lcom/ninesky/browser/TabControl;->a(Z)Lcom/ninesky/browser/n;

    move-result-object v3

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "webview"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {p1, v4}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v4

    if-eqz v4, :cond_3

    invoke-virtual {v3, v4}, Lcom/ninesky/browser/n;->a(Landroid/os/Bundle;)Z

    goto :goto_3
.end method

.method final b()Ljava/io/File;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->i:Ljava/io/File;

    return-object v0
.end method

.method public final b(I)V
    .locals 10

    const/4 v3, -0x1

    if-eq p1, v3, :cond_0

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    if-eq p1, v0, :cond_0

    iget v5, p0, Lcom/ninesky/browser/TabControl;->f:I

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/n;->a(Z)V

    iput p1, p0, Lcom/ninesky/browser/TabControl;->f:I

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->setDisplayedChild(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/n;->a(Z)V

    iget v6, p0, Lcom/ninesky/browser/TabControl;->f:I

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v7

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->q()Ljava/lang/String;

    move-result-object v8

    new-instance v0, Lcom/ninesky/browser/ef;

    const/16 v2, 0x8

    const/4 v9, 0x0

    move-object v1, p0

    move v4, v3

    invoke-direct/range {v0 .. v9}, Lcom/ninesky/browser/ef;-><init>(Lcom/ninesky/browser/TabControl;IIIIIILjava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/ninesky/browser/TabControl;->j:Lcom/ninesky/browser/p;

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/p;->a(Lcom/ninesky/browser/ef;)V

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/BrowserActivity;->e(I)V

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/BrowserActivity;->a(I)V

    :cond_0
    return-void
.end method

.method public final b(Landroid/os/Bundle;)V
    .locals 5

    const/4 v3, 0x0

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    const-string v1, "numTabs"

    invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    iget v1, p0, Lcom/ninesky/browser/TabControl;->f:I

    const-string v2, "currentTabIndex"

    if-ltz v1, :cond_0

    if-ge v1, v0, :cond_0

    :goto_0
    invoke-virtual {p1, v2, v1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    move v1, v3

    :goto_1
    if-lt v1, v0, :cond_1

    return-void

    :cond_0
    move v1, v3

    goto :goto_0

    :cond_1
    invoke-virtual {p0, v1}, Lcom/ninesky/browser/TabControl;->a(I)Lcom/ninesky/browser/n;

    move-result-object v2

    invoke-virtual {v2}, Lcom/ninesky/browser/n;->z()Z

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "webview"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2}, Lcom/ninesky/browser/n;->A()Landroid/os/Bundle;

    move-result-object v2

    invoke-virtual {p1, v3, v2}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_1
.end method

.method public final b(Ljava/lang/String;)V
    .locals 1

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/TabControl;->a(Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/n;->b(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public final b(Lcom/ninesky/browser/n;)Z
    .locals 2

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/TabControl;->a(Lcom/ninesky/browser/n;)I

    move-result v0

    iget v1, p0, Lcom/ninesky/browser/TabControl;->f:I

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final c()Ljava/util/Observable;
    .locals 1

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->j:Lcom/ninesky/browser/p;

    return-object v0
.end method

.method public final c(I)V
    .locals 10

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-ltz p1, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    sub-int/2addr v0, v2

    if-gt p1, v0, :cond_0

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    if-ne v0, v2, :cond_1

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->l()V

    const-string v1, "about:dashboard"

    invoke-virtual {v0, v1}, Lcom/ninesky/browser/n;->b(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->p()V

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v7

    const-string v8, ""

    new-instance v0, Lcom/ninesky/browser/ef;

    const/16 v2, 0x8

    const/4 v9, 0x0

    move-object v1, p0

    move v4, v3

    move v5, v3

    move v6, v3

    invoke-direct/range {v0 .. v9}, Lcom/ninesky/browser/ef;-><init>(Lcom/ninesky/browser/TabControl;IIIIIILjava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/ninesky/browser/TabControl;->j:Lcom/ninesky/browser/p;

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/p;->a(Lcom/ninesky/browser/ef;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0, p1}, Lcom/ninesky/browser/TabControl;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/n;

    invoke-virtual {v0, v3}, Lcom/ninesky/browser/n;->a(Z)V

    monitor-enter p0

    :try_start_0
    invoke-virtual {p0, p1}, Lcom/ninesky/browser/TabControl;->removeViewAt(I)V

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->m()V

    iget v5, p0, Lcom/ninesky/browser/TabControl;->f:I

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    if-gt p1, v0, :cond_2

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    if-ge p1, v0, :cond_3

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    sub-int/2addr v0, v2

    iput v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    :cond_2
    :goto_1
    iget v6, p0, Lcom/ninesky/browser/TabControl;->f:I

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v7

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->q()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->i()Ljava/lang/String;

    move-result-object v9

    new-instance v0, Lcom/ninesky/browser/ef;

    const/4 v2, 0x4

    const/4 v3, -0x1

    move-object v1, p0

    move v4, p1

    invoke-direct/range {v0 .. v9}, Lcom/ninesky/browser/ef;-><init>(Lcom/ninesky/browser/TabControl;IIIIIILjava/lang/String;Ljava/lang/String;)V

    iget-object v1, p0, Lcom/ninesky/browser/TabControl;->j:Lcom/ninesky/browser/p;

    invoke-virtual {v1, v0}, Lcom/ninesky/browser/p;->a(Lcom/ninesky/browser/ef;)V

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/BrowserActivity;->e(I)V

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->e:Lcom/ninesky/browser/BrowserActivity;

    invoke-virtual {v0, v6}, Lcom/ninesky/browser/BrowserActivity;->a(I)V

    goto :goto_0

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0

    :cond_3
    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v1

    if-ne v0, v1, :cond_4

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    sub-int/2addr v0, v2

    iput v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    :cond_4
    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->setDisplayedChild(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/ninesky/browser/n;->a(Z)V

    goto :goto_1
.end method

.method public final c(Lcom/ninesky/browser/n;)V
    .locals 1

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/TabControl;->a(Lcom/ninesky/browser/n;)I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->c(I)V

    return-void
.end method

.method public final d(Lcom/ninesky/browser/n;)V
    .locals 1

    invoke-virtual {p0, p1}, Lcom/ninesky/browser/TabControl;->a(Lcom/ninesky/browser/n;)I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->b(I)V

    return-void
.end method

.method public final d()Z
    .locals 2

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    const/16 v1, 0x8

    if-ge v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public final e()V
    .locals 0

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->removeAllViews()V

    return-void
.end method

.method public final g()I
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    return v0
.end method

.method public final h()Lcom/ninesky/browser/n;
    .locals 1

    iget v0, p0, Lcom/ninesky/browser/TabControl;->f:I

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->getChildAt(I)Landroid/view/View;

    move-result-object p0

    check-cast p0, Lcom/ninesky/browser/n;

    return-object p0
.end method

.method public final i()I
    .locals 1

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    return v0
.end method

.method public final j()V
    .locals 2

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    if-lt v1, v0, :cond_0

    return-void

    :cond_0
    invoke-virtual {p0, v1}, Lcom/ninesky/browser/TabControl;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/n;

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->t()V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public final k()V
    .locals 4

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    if-lt v1, v0, :cond_0

    return-void

    :cond_0
    invoke-virtual {p0, v1}, Lcom/ninesky/browser/TabControl;->a(I)Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v2

    const/4 v3, 0x1

    if-ne v2, v3, :cond_1

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Landroid/webkit/WebView;->stopLoading()V

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public final l()V
    .locals 3

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/webkit/WebView;

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Landroid/webkit/WebView;->onPause()V

    :cond_0
    return-void
.end method

.method public final m()V
    .locals 3

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->h()Lcom/ninesky/browser/n;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->d()I

    move-result v1

    const/4 v2, 0x1

    if-ne v1, v2, :cond_0

    invoke-virtual {v0}, Lcom/ninesky/browser/n;->v()Landroid/view/View;

    move-result-object p0

    check-cast p0, Landroid/webkit/WebView;

    if-eqz p0, :cond_0

    invoke-virtual {p0}, Landroid/webkit/WebView;->onResume()V

    :cond_0
    return-void
.end method

.method public final n()V
    .locals 4

    const/4 v3, 0x1

    const/4 v2, 0x0

    invoke-virtual {p0, v2}, Lcom/ninesky/browser/TabControl;->b(I)V

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    const/4 v1, 0x2

    if-lt v0, v1, :cond_0

    move v1, v3

    :goto_0
    if-lt v1, v0, :cond_1

    :cond_0
    invoke-virtual {p0, v2}, Lcom/ninesky/browser/TabControl;->c(I)V

    return-void

    :cond_1
    invoke-virtual {p0, v3}, Lcom/ninesky/browser/TabControl;->c(I)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 2

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    if-lt v1, v0, :cond_0

    return-void

    :cond_0
    invoke-virtual {p0, v1}, Lcom/ninesky/browser/TabControl;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/ninesky/browser/n;

    invoke-virtual {v0, p1}, Lcom/ninesky/browser/n;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public setDisplayedChild(I)V
    .locals 1

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getDisplayedChild()I

    move-result v0

    if-le p1, v0, :cond_1

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->a:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->setInAnimation(Landroid/view/animation/Animation;)V

    :cond_0
    :goto_0
    invoke-super {p0, p1}, Landroid/widget/ViewAnimator;->setDisplayedChild(I)V

    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getDisplayedChild()I

    move-result v0

    if-ge p1, v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->c:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->setInAnimation(Landroid/view/animation/Animation;)V

    goto :goto_0
.end method

.method public showNext()V
    .locals 3

    const/4 v2, 0x1

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    if-le v0, v2, :cond_1

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getDisplayedChild()I

    move-result v0

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v1

    sub-int/2addr v1, v2

    if-ge v0, v1, :cond_1

    move v0, v2

    :goto_0
    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->a:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->setInAnimation(Landroid/view/animation/Animation;)V

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->b:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->setOutAnimation(Landroid/view/animation/Animation;)V

    invoke-super {p0}, Landroid/widget/ViewAnimator;->showNext()V

    :cond_0
    return-void

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public showPrevious()V
    .locals 2

    const/4 v1, 0x1

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getChildCount()I

    move-result v0

    if-le v0, v1, :cond_1

    invoke-virtual {p0}, Lcom/ninesky/browser/TabControl;->getDisplayedChild()I

    move-result v0

    if-lez v0, :cond_1

    move v0, v1

    :goto_0
    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->c:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->setInAnimation(Landroid/view/animation/Animation;)V

    iget-object v0, p0, Lcom/ninesky/browser/TabControl;->d:Landroid/view/animation/Animation;

    invoke-virtual {p0, v0}, Lcom/ninesky/browser/TabControl;->setOutAnimation(Landroid/view/animation/Animation;)V

    invoke-super {p0}, Landroid/widget/ViewAnimator;->showPrevious()V

    :cond_0
    return-void

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method
